<div class="content" style="width:1050px;margin:0 auto;">
    <!---------- HEADER ---------->
	<div class="gallery-header">
		<a href="#"><img src="<?php echo base_url();?>assets/themes/yoradio/images/yo-radio-logo.png" /></a>
		<iframe id="single-banner" src="<?php echo base_url().'yoradio/ads/dig-single';?>"></iframe>
		<div class="clear"> </div>
	</div>
	<div class= "category-header">
		<h1 class = "h1"><span class="h1-title">
			<?php
				$category = get_type_name($content['fk-tb_mas_content_types']);
				echo $category;
			?>
		</span></h1>
		<div class="clear"></div>
	</div>
    <!--------- ARTICLE --------->
    <div class = "modal-pagewrap">
	<div class="article" style="width:680px;float:left;padding:15px;">
		<div class="article-header">
			<h3><?php echo $content['strTitle']; ?></h3>
			<hr />
			<!-- AddThis Button BEGIN -->
				<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
                        <a class="addthis_button_facebook_like" fb:like:layout="box_count"></a>
                        <a class="addthis_button_tweet" tw:count="vertical"></a>
                        <a class="addthis_button_google_plusone" g:plusone:size="tall"></a>
                        <a class="addthis_counter"></a>			
                </div>
			</div>
			<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
			<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4ec0214313fd07b4"></script>
			<!-- AddThis Button END -->	

			<p><img src="<?php echo base_url().IMAGE_UPLOAD_DIR.$content['strPicture'] ?>"></p>
			<h3>Gallery Images</h3>
				<p class="info-message">Click on the images to view full size</p>
				<?php foreach($gallery_images as $image): ?>
					<div class="gallery-image">
						<a class="fancybox" rel="gallery" href="<?php echo base_url().IMAGE_UPLOAD_DIR.$image['strFileName']; ?>">
							<img alt="<?php $content['strTitle'] ?>" src="<?php echo base_url().MEDIUM_UPLOAD_DIR.$image['strFileName']; ?>">
						</a>
					</div>
				<?php endforeach; ?>
				<div class="clear"></div>
			<p class="text"><?php echo $content['ct-strContent'] ?></p>
			<hr />
            <div class="span5">		
		      <div id="disqus_thread"></div>
                <script type="text/javascript">
                    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
                    var disqus_shortname = 'pinoytuner2'; // required: replace example with your forum shortname
        
                    /* * * DON'T EDIT BELOW THIS LINE * * */
                    (function() {
                        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
                        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
                        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
                    })();
                </script>
                <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
                <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
	       </div>
		</div> 
    <div class="sidebar gallery-images" style="width:300px;float:left;">
                 <!---MORE GALLERIES----------------------------------------------->
                <?php if(!isset($more_content['error'])): ?>
                <div class="more-content">
                    <h3>More Galleries</h3>
                    <ul>
                    <?php
                        foreach($more_content as $more): ?>
                        <li>
                            <a class="modal-trigger" href="<?php echo base_url().'yoradio/content/'.get_type_name($more['fk-tb_mas_content_types']).'/'.$more['intID'].'/'.simplify_title($more['strTitle']); ?>" >
                                <?php echo $more['strTitle']; ?>
                            </a>
                        </li>
                    <?php endforeach; ?>
                    </ul>
                </div>
                <?php endif; ?>
				
				<hr/>
				<p class = "content-tags">
					<?php if(empty($content['strTags'])): ?>
						<p class="content-tags"> no tags </p>
					<?php else:
						$content_tags = $content['strTags'];
						$tag1 = explode(",", $content_tags);
						foreach($tag1 as $t):
						    ?>
		                    <a class="btn btn-danger tag" href="<?php echo base_url().'yoradio/tags/'.$t; ?>"><?php echo $t; ?></a>
					<?php 
		                endforeach;
		            endif; //endforeach; ?>
				</p>
				<hr/>
				<p class = "external-links">
					<?php if(empty($content['strExternalLinks'])): ?>
						<p class="modal-trigger sidebar-link"> no external links </p>
					<?php else:
						$content_externallinks = $content['strExternalLinks'];
						$tag1 = explode(",", $content_externallinks);
					?>
						<h2>external links</h2>
					<?php
						foreach($tag1 as $t):
					?>
							<a class="modal-trigger sidebar-link" target="_blank" href="<?php echo $t; ?>"><?php echo $t; ?></a><br />
					<?php 
						endforeach;//endforeach;
					endif;  ?>
				</p>
			</div>
    <div class="clear"></div>
    </div>
</div>
           
	